package ucm.controller;

import air_cp5620.util.ProcessPassword;
import java.security.NoSuchAlgorithmException;
import javax.swing.JOptionPane;
import ucm.module.UC_ModM;
import ucm.module.UC_RegM;

public class UC_ModC {
    private String id = null;
    private String start_city = null;
    private String end_city = null;
    private String start_time = null;
    private String end_time = null;
    private String ticketcount = null;
    private String price = null;



    public UC_ModC(String id, 
            String start_city,
            String end_city,
            String start_time,
            String end_time,
            String ticketcount,
            String price) throws NoSuchAlgorithmException {
        this.id = id;
        this.start_city = start_city;
        this.end_city = end_city;
        this.start_time = start_time;
        this.end_time = end_time;
        this.ticketcount = ticketcount;
        this.price = price;
    }


    
    public boolean run()
    {
        UC_ModM uc_mdm = new UC_ModM(id);
        return uc_mdm.modify(start_city,end_city,start_time,end_time,ticketcount,price);
    }
}
